package com.hospital.diagnosis.module.exception.enums;

public enum WebSocketExpCode {
    THREAD_ATTRIBUTES_NOT_EXIST( 10001, "用户不合法" ),
    NOT_PATIENT( 10002, "用户不是患者" ),
    USER_NOT_EXIST( 10003, "用户不存在" ),
    SESSION_EXPIRED( 10004, "用户会话已过期" ),
    SESSION_CLOSE_FAILED( 10005, "用户会话关闭失败" ),
    SEND_MESSAGE_FAILED( 10006, "发送消息失败" ),
    MESSAGE_NOT_EXIST( 10007, "消息不存在" ),
    TALK_FLAG_NOT_EXIST( 10008, "对话标识不存在" ),
    MESSAGE_FLAG_ERROR( 10009, "消息标识错误"),
    PATIENT_ID_NOT_EXIST( 10010, "患者ID不存在" );
    public final Integer code;
    public final String message;
    WebSocketExpCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
